<include file="Public/head" />
<include file="Public/common_header" />
<div class="mian">
<include file="Public/sidebar" menu="cwgl.cjhd"  />
   <div class="mianR">
      <div class="yuyue">
         <ul>
            <li onclick="get_list(1);" class="yuCurrent">未发放</li>
            <li onclick="get_list(2);">已发放</li>
            <li onclick="get_list(3);">已过期</li>
         </ul>
          <input type="hidden" name="status" value="1" />
          <input type="hidden" name="aid" value="{$aid}" />
      </div>
      <div class="listBox" id="listBox">
         
      </div>
       <div class="yongBtn1">
           <input  type="button" class="quxiao" onclick="window.close()" value="关闭" />
       </div>
      <div class="clear"></div>
   </div>
</div>
<script type="text/javascript">
   get_list(1);
   function get_list(status){
       $('input[name=status]').val(status);
       var aid = $('input[name=aid]').val();
       $.get("/Raffle/get_card_list",{"status":status,"aid":aid},function(data){
          $("#listBox").html(data);  
       },"html");
   }

   function get_page(p){
       var status = $('input[name=status]').val();
       var aid = $('input[name=aid]').val();
       var search = $("#searchFrom").serialize();
       $.get("/Raffle/get_card_list/aid/"+aid,search+"&p="+p, function(data){
          $("#listBox").html(data);
       },"html");
   }
    function search(){
      var aid = $('input[name=aid]').val();
        $.get("/Raffle/get_card_list/aid/"+aid,$("#searchFrom").serialize(),function(data){
            $("#listBox").html(data);  
        },"html");
    }
</script>
<include file="Public/foot" />